const { withTimeoutRetry, wait } = require('./utils')

const test = async () => {
  await withTimeoutRetry({
    fn: async () => {
      await wait(150)
      console.log('wait')
      return 1
    },
    hint: 'wait 失败！',
    timeout: 100,
    retryTimes: 3
  })
}

+async function(){
  await test()
  console.log('end')
}()
